package host.skiree.nettydemo.message;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author gcl
 * @date 2022/9/27 10:32
 */
public abstract class SequenceIdGenerator {
    private static final AtomicInteger id = new AtomicInteger();

    public static int nextId(){
        return id.incrementAndGet();
    }
}
